﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta charset='UTF-8' />
<title><?php echo $page_title ;?></title>

<link type="text/css" rel="stylesheet" href="<?php echo base_url ()?>template/backend/css/admin.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url ()?>template/backend/jquery/ddsmooth/ddsmoothmenu.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url ()?>template/backend/jquery/ddsmooth/ddsmoothmenu-v.css" />
<script type="text/javascript" src="<?php echo base_url()?>template/backend/jquery/jquery-1.6.4.min.js"></script>

<script type="text/javascript" src="<?php echo base_url ()?>template/backend/jquery/ddsmooth/ddsmoothmenu.js"></script>
<script type="text/javascript">
		/***********************************************
		* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
		* This notice MUST stay intact for legal use
		* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
		***********************************************/	
			ddsmoothmenu.init({
				mainmenuid: "smoothmenu1", //menu DIV id
				orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
				classname: 'ddsmoothmenu', //class added to menu's outer DIV
				//customtheme: ["#1c5a80", "#18374a"],
				contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
			})
		</script>
</head>
<body>

<style>
#header a {
	text-decoration: none;
	color: #f88888;
}
</style>
<div id="header">
	<img src="<?php echo base_url ()?>/template/backend/images/small_logo.png"	style="float: left" />
	<p style="float: right; margin-right: 200px;">
	<?php $username = $this->session->userdata('username');?>
	<?php $level = $this->session->userdata('level');?>
		<?php if($username != '' && $level == 1){
				echo "<span style = 'font-weight: bold; color: red' >".$username."</span>";
				echo " | <a href='".base_url()."index.php/admin/update/1'>Đổi mật khẩu</a>";
				echo " | <a href='".base_url()."index.php/admin/logout'>Thoát</a>"	;

			   } ?>
	<div style="clear: both"><span></span></div>
</div>

<div id="smoothmenu1" class="ddsmoothmenu">
<ul>
	<li><a href="<?php echo base_url()?>index.php/overview">Tổng quan</a></li>
	
	<li><a href="#">Nhà cung cấp</a>
		<ul>
			<li><a href="<?php echo base_url()?>index.php/provider">Danh sách nhà cung cấp</a></li>
			<li><a href="<?php echo base_url()?>index.php/price_policy">Chế độ giảm giá</a></li>
			<li><a href="<?php echo base_url()?>index.php/time_policy">Chế độ thời gian</a></li>
		</ul>
	</li>
	
	<li><a href="<?php echo base_url()?>index.php/customer">Khách hàng</a></li>
	
	<li><a href="<?php echo base_url()?>index.php/order">Đơn hàng</a>
	</li>
	
	<li><a href="#">Thẻ CARDnet</a>
		<ul>
			<li><a href="<?php echo base_url()?>index.php/cardtype">Loại thẻ</a></li>
			<li><a href="<?php echo base_url()?>index.php/card">Danh sách thẻ</a></li>
		</ul>
	</li>
	
	<li><a href="<?php echo base_url()?>index.php/news">Bản tin CARDnet</a></li>
	
	<li><a href="#">Giao diện </a>
		<ul>
			<li><a href="<?php echo base_url()?>index.php/slideshow">Quản lý banner</a></li>
			<li><a href="<?php echo base_url()?>index.php/advertisement">Tích hợp quảng cáo</a></li>
		</ul>	
	</li>
		
	<li><a href="#">Hệ thống</a>
		<ul>
			  <li><a href="<?php echo base_url()?>index.php/syspages">Các trang thông tin</a></li>
			  <li><a href="<?php echo base_url()?>index.php/admin/update/1">Tài khoản</a>
			  </li>
		</ul>
	</li>
		
</ul>
<br style="clear: left" />
</div>
<style>
	td a {
		text-decoration: none;	
	}
</style>